package ch7.ex11;

import static ch7.print.Print.*;

public class Sandwich extends PortableLunch{
	
	private Bread b = new Bread();
	private Cheese c = new Cheese();
	private Lattuce l = new Lattuce();
	private Pickle p = new Pickle();
	public Sandwich(){
		println("Sandwich()");
	}
	public static void main(String... args){
		new Sandwich();
	}
}

class Meal{
	Meal(){
		println("Meal()");
	}
}

class Bread{
	Bread(){
		println("Bread()");
	}
}

class Cheese{
	Cheese(){
		println("Cheese()");
	}
}

class Lattuce{
	Lattuce(){
		println("Lattuce()");
	}
}

class Lunch extends Meal{
	Lunch(){
		println("Lunch()");
	};
}

class Pickle{
	Pickle(){
		println("Pickle()");
	}
}

class PortableLunch extends Lunch{
	PortableLunch() {
		println("PortableLunch()");
	}
}
